﻿@model yq.Model.Logic.FileList

@using (Ajax.BeginForm("DoAddFolder", new { }, new AjaxOptions { HttpMethod = "post", OnSuccess = "InitializeTips" }))
{ @Html.HiddenFor(obj => obj.SuperiorId)
    <div>
        <table class="table table-condensed"  width="400px">
            <tbody>
                <tr>
                    <td>
                        @(Html.RawFor(obj => obj.Ttile))
                    </td>
                    <td>
                        @Html.TextBoxFor(obj => obj.Ttile)
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        @Html.Submit(" 添 加 ", new { id="addfolder" })
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
}
<script>
    function InitializeTips(obj) 
    {
        if (obj.Status == 1) 
        {
            $.tips("添加成功");
            getCurrentDialog($("#addfolder")).close();
            RefreshForm();
        } else {
            $.tips(obj.ErrorText);
        }
    }
</script>
